// 存储键名常量
export const STORAGE_KEYS = {
  SELECTED_PROVIDER: 'selectedProvider',
  SELECTED_MODEL: 'selectedModel',
  SELECTED_MCP: 'selectedMcp'
};

// 获取存储项
export const getStorageItem = (key:string) => {
  return localStorage.getItem(key);
};

// 设置存储项（仅当值存在时存储）
export const setStorageItem = (key: string, value: any) => {
  value && localStorage.setItem(key, value);
};